package com.zengqingfa.juc.n4;

/**
 * @author zengqingfa
 * @className UserServiceImpl
 * @description
 * @create 2021/6/10 23:34
 */
public class UserServiceImpl5 implements UserService {

    // 是否安全? 线程不安全，存在共享变量conn
    private UserDao userDao = new UserDaoImpl();

    public void update(String s) throws Exception{

        userDao.update(s);
    }
}